<%@page import="java.util.Map.Entry"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String url="oper/"+request.getParameter("type")+"_"+request.getParameter("oper")+"?";
for(Entry<String, String[]> map:((Map<String, String[]>)request.getParameterMap()).entrySet()){
	if(map.getKey().equals("type") || map.getKey().equals("oper"))continue;
	else if(map.getKey().equals("id")){
		if(map.getValue().length==1){
			String[] str=map.getValue()[0].split(",");
			if(str.length>1){
				url+="ids="+map.getValue()[0]+"&";
			}
		}
	}
	else{
		url+="t."+map.getKey()+"="+map.getValue()[0]+"&";
	}
}
System.out.println(url);
request.getRequestDispatcher(url).forward(request, response);
//response.sendRedirect(request.getContextPath()+url);
%>
